//
//  CollectionModel.m
//  cm
//
//  Created by suyibaishan on 2017/10/26.
//  Copyright © 2017年 feihu. All rights reserved.
//

#import "CollectionModel.h"

@implementation CollectionModel

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    if (self = [super init])
    {
        self.productName = dictionary[@"productName"];
        self.imgUrl = dictionary[@"imgUrl"];
        self.unitPrice = [dictionary[@"unitPrice"] floatValue];
        self.downPayment = [dictionary[@"downPayment"] floatValue];
        self.points = dictionary[@"points"];
    }
    return  self;
}

@end
